<%-- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>管理员登录页面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
<h1>管理员登录页面</h1>
<hr/>
  <p style="font-weight: 900; color: red">${msg }</p>
<form action="<c:url value='/AdminServlet'/>" method="post">
	<input type="hidden" name="method" value="login"/>
	管理员账户：<input type="text" name="adminname" value=""/><br/>
	密　　　码：<input type="password" name="password"/><br/>
	<input type="submit" value="进入后台"/>
</form>
  </body>
</html> --%>

<%@ page language="java" contentType="text/html;charset=UTF-8" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
	<meta name="viewport" content="width=device-width, initial-scale=1"/>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<title>管理员登录</title>

	<!-- 1. 导入CSS的全局样式 -->
	<link href="css/bootstrap.min.css" rel="stylesheet">
	<!-- 2. jQuery导入，建议使用1.9以上的版本 -->
	<script src="js/jquery-2.1.0.min.js"></script>
	<!-- 3. 导入bootstrap的js文件 -->
	<script src="js/bootstrap.min.js"></script>

</head>
<body>
<div class="container" style="width: 400px;">
	<h3 style="text-align: center;">管理员登录</h3>
	<!--<form action="${pageContext.request.contextPath}/administrate/login" method="post">  -->
	<form action="<c:url value='/AdminServlet'/>" method="post">
	<input type="hidden" name="method" value="login"/>
		<div class="form-group">
			<label for="user">用户名：</label>
			<input type="text" name="adminname" class="form-control" id="user" placeholder="请输入用户名"/>
		</div>

		<div class="form-group">
			<label for="password">密码：</label>
			<input type="password" name="password" class="form-control" id="password" placeholder="请输入密码"/>
		</div>

		<hr/>
		<div class="form-group" style="text-align: center;">
			<input class="btn btn btn-primary" type="submit" value="进入后台">
		</div>

	</form>

	<!-- 出错显示的信息框 -->
	<div class="alert alert-warning alert-dismissible" role="alert">
		<button type="button" class="close" data-dismiss="alert" >
			<span>&times;</span>
		</button>
		<p style="font-weight: 900; color: red">${msg }</p>
	</div>
</div>
</body>
</html>

